<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title><{:C('ADMINTITLE')}></title>
  <load file="__PUBLIC__/Admin/Css/common.css" /> 
  <script type="text/javascript" src="__PUBLIC__/jquery-1.8.2.min.js"></script>
  <script type="text/javascript">
	$(function(){
		$("[name='flag']").click(function(){
						var flagValue=$(this).val();
						var url = "<{:U('Project/edit_flag')}>?pro_id=" + flagValue;  
						window.location=url;
		});
		$(".selectAll").click(function(){
			$("[name='user_id[]']").attr("checked","true");//全选
		});
		$(".cancelAll").click(function(){
			$("[name='user_id[]']").removeAttr("checked")//取消全选
		});
		$(".reverse").click(function(){
		     $("[name='user_id[]']").each(function(){
				if($(this).attr("checked")){
					$(this).removeAttr("checked");   
				}else{
					$(this).attr("checked","true"); }
				});
		});
	});
  
  </script>
 </head>
 <body>
	<if condition="$Think.session.role neq '老师'">
		<{:redirect(U('Index/index'))}>
	<else />
		<div class="wrap">
		    <include file="Public/top" />
			<div class="con">
				<include file="Public/left" /> 
				<div class="main">
					<div  class="shadow1 center main3" style="overflow:auto;">
					    <form action="<{:U('delete')}>" method="post" name="myform">
						  <table width="70%"  border=1 cellspacing=0 bordercolor="#ccc" class="table_tr20">
							<tr   align="middle"><th style="width:40px">姓名</th><th style="width:40px">项目名称</th>
							<th style="width:40px">组号</th><th style="width:40px">分数</th><th style="width:40px">理由</th><th style="width:40px">操作</th></tr>
							<foreach name="scoreData" item="vo" >
								<tr   align="middle">
									<td style="width:40px"><{$vo['name']}></td>
									<td style="width:40px"><{$vo['proname']}></td>
									<td style="width:40px"><{$vo['group']}></td>
									<td style="width:40px"><{$vo['varscore']}></td>
									<td style="width:40px"><{$vo['comment']}></td>
									<td style="width:40px">
									<a href="<{:U('edit_score','user_id='.$vo['user_id'].'&pro_id='.$vo['pro_id'])}>">修改</a>|<a href=<{:U('delete','user_id='.$vo['user_id'].'&pro_id='.$vo['pro_id'])}>>删除</a></td>
								</tr>
							</foreach>	
							
						  </table>
						</form>
						 <div  class="pages">
							 <{$page}>
						 </div>
					</div>
			</div>
			<div class="clear"></div>
		</div>
		<include file="Public/foot" /> 
	</div>
    </if> 
 </body>
</html>
 